#pragma once
#include "any.h"
#include "result.h"
class Result;
class Task {
public:
    Task();
    virtual ~Task() = default;

    void exec();
    void setResult(Result* result);
    virtual Any run() = 0;

private:
    Result* result_;
};
